when creating a new boolean column in an existing table how to set the default value as true in c# models code first

77

when creating a new boolean column in an existing table how to set the default value as true in c# models code first -

public class Revision
{
    ...
    public Boolean IsReleased { get; set; }
  	public Revision(){
    	IsReleased = true;
    }
    ....
}

Comments

Submit
0 Comments